using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class PlayerHuggingState : PlayerState
{
    public PlayerHuggingState(Player _player, PlayerStateMachine _stateMachine, string _animBoolName) : base(_player, _stateMachine, _animBoolName)
    {
    }

    public override void Enter()
    {
        base.Enter();
    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void update()
    {
        base.update();
        player.rb.bodyType = RigidbodyType2D.Static;
        if(Input.GetKeyDown(KeyCode.S))
        {
            stateMachine.ChangeState(player.slideState);
            player.rb.bodyType = RigidbodyType2D.Dynamic;
        }
    }
}
